#!/usr/bin/python

class Person:
	def __init__(self,name):
		self.name = name;

	def sayHi(self):
		print self.name;

	def toString(self):
		return 'name='+self.name;

# inherite Person
class SchoolMember(Person):
	def __init__(self,name,age):
		Person.__init__(self,name); 
		self.age = age;

	def toString(self):
		s = Person.toString(self);
		s = s+' ,age='+ str(self.age); # str(10) => '10', int('10') => 10
		return s;


p1 = Person('lilei')
s1 = SchoolMember('hmm',11);
members = [p1,s1]
for i in members:
	i.sayHi()
	print i.toString();